@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


:root {
  --p-font: "Open Sans", sans-serif;
  --h-font: "Domine", serif;

  --header-font-weight: 400;

  --primary: #8c1010;
  --primaryRGB: 140, 16, 16;

  --secondary: #000;
  --secondaryRGB: 0, 0, 0;

  /* nav settings */
  --nav-top-bg: rgb(255, 255, 255, 0);
  --nav-scrolled-bg: #fff;
  --nav-height: 6rem;
  --logo-size-lg: 40px;
  --logo-size-mbl: 35px;
  --logo-top-wht: brightness(0) invert(1);
  --logo-top-op: 1;
  /* top */
  --nav-link-top-clr: #fff;
  --nav-link-top-hvr-clr: var(--secondary);
  --nav-link-top-border: var(--primary);
  --nav-icon-top-clr: #fff;
  --nav-icon-top-hvr-clr: var(--secondary);
  /* scrolled & pages */
  --nav-link-scrolled-clr: var(--secondary);
  --nav-link-scrolled-hvr-clr: var(--primary);
  --nav-link-scrolled-border: var(--secondary);
  --nav-icon-scrolled-clr: var(--primary);
  --nav-icon-scrolled-hvr-clr: var(--secondary);
  /* mobile menu */
  --menu-link-clr: var(--primary);
  --menu-link-border: var(--primary);
  --menu-footer-bg: var(--secondary);
  --menu-social-clr: #fff;
  --menu-social-hvr-clr: var(--primary);
  /* anna modern reset */
  --palette-navigationBackground-color: var(--nav-scrolled-bg);

  /* hero */
  --hero-height-fb: 70vh;
  --hero-height: 70dvh;
  --hero-overlay: linear-gradient(to top,
      rgba(0, 0, 0, .78) 0%,
      rgba(0, 0, 0, .35) 40%,
      rgba(0, 0, 0, .12) 70%,
      transparent 100%);
  --hero-content-width: max-content;
  /* title main */
  --hero-title-size-lg: 48px;
  --hero-title-size-mbl: 32px;
  --hero-title-weight: 400;
  --hero-title-spacing: 4px;
  --hero-title-case: uppercase;
  --hero-title-clr: #fff;
  /* title sub */
  --hero-sub-size-lg: 18px;
  --hero-sub-size-mbl: 16px;
  --hero-sub-weight: 400;
  --hero-sub-spacing: 2px;
  --hero-sub-font: var(--p-font);
  --hero-sub-case: uppercase;
  /* tabs */
  --number-of-tabs: 3;
  --hero-tab-padding: 1em 3em;
  --hero-tab-txt-size: 0.9em;
  --hero-tab-txt-spacing: 1px;
  --hero-tab-weight: 600;
  --hero-tab-case: uppercase;
  --hero-tab-border: 1px solid #fff;
  --hero-tab-txt-clr: #fff;
  --hero-tab-bg-clr: rgb(var(--secondaryRGB), .25);
  --hero-tab-hvr-txt-clr: #fff;
  --hero-tab-hvr-bg-clr: var(--primary);
  --hero-tab-hvr-border-clr: var(--primary);
}


/* reg home fix */
#anna-modern-fold {
  margin-top: calc(var(--nav-height) * -1);
}

/* live hide */
.home #anna-modern-fold,
.home #widget-ctas {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* anna hide */
.home #search-tabs,
.home>section[aria-label="property search hero"] {
  display: none;
}

/* Page Resets */
.home #content {
  width: 100%;
  padding: 0;
}

.home .section-width-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.home #sidebar {
  display: none;
}

.home>div.lg\:px-40 {
  padding: 0 !important;
}

.home #content>section {
  margin: 0 !important;
}

.home header {
  position: fixed;
}

/* modern fixes */

#rg-valuation-iframe-0 {
  min-height: 25rem !important;
}

.property-detail-listing-vertical:hover {
  outline: none !important;
}

/*  */

/* Fonts */
body *:is(p, li, a, label, legend, button, option, summary) {
  font-family: var(--p-font) !important;
}

body *:is(h1, h2, h3, h4, h5, h6, .text-hero) {
  font-family: var(--h-font) !important;
}

body:not(.home) .mce-content a {}

body h1,
body.home h2,
body .text-hero {
  font-weight: var(--header-font-weight);
}

/* navigation */

.home header.custom-scroll,
.pages header,
nav.top-nav {
  box-shadow: 0 1px 8px rgb(0, 0, 0, 0.15);
  border-bottom: none;
}

body>header>nav.relative>div.mx-0.pr-2.pl-6.lg\:px-8>div {
  height: var(--nav-height);
}

body header #nav-logo {
  height: var(--logo-size-mbl);
}

@media (min-width: 768px) {
  body header #nav-logo {
    height: var(--logo-size-lg);
  }
}

body.home header:not(.custom-scroll) #nav-logo img {
  filter: var(--logo-top-wht);
  opacity: var(--logo-top-op);
  transition: 300ms ease;
}

body.home header>nav>div:first-child {
  transition: 300ms ease;
}

body.home header:not(.custom-scroll)>nav:not(#mobile-menu)>div:first-child {
  opacity: 1;
  background-color: var(--nav-top-bg);
}

.bg-palette-navigationBackground-color.bg-palette-navigationBackground-color {
  --palette-navigationBackground-color: var(--nav-scrolled-bg) !important;
}

body.home header {
  background: transparent;
}

/* links */

#nav-links>div {
  justify-content: flex-end;
  align-items: center;
}

/* fix ugly border */

header #nav-links a {
  border: none;
  padding-bottom: 0.5rem;
  font-size: 0.9em;
  font-weight: bold;
}

header #nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  /* transform: translateX(-50%); */
  width: 0%;
  height: 2px;
  background: var(--nav-link-scrolled-hvr-clr);
  transition: 300ms ease;
}


header #nav-links a:hover::after {
  width: 100%;
}


/* custom banner nav links */
body.home header:not(.custom-scroll) #nav-links a {
  color: var(--nav-link-top-clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover {
  color: var(--nav-link-top-hvr-clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover::after {
  background: var(--nav-link-top-border);
}

/* scrolled and pages nav links */
body.home header.custom-scroll #nav-links a,
body.pages header #nav-links a {
  color: var(--nav-link-scrolled-clr);
}

body.home header.custom-scroll #nav-links a:hover,
body.pages header #nav-links a:hover {
  color: var(--nav-link-scrolled-hvr-clr);
}

body.home header.custom-scroll #nav-links a:hover::after,
body.pages header #nav-links a:hover::after {
  background: var(--nav-link-scrolled-border);
}


nav.top-nav a:hover {
  color: var(--nav-link-scrolled-hvr-clr);
}

/* icons */
#nav-icons svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: 300ms ease;
}

body.home header #nav-icons svg {
  fill: var(--nav-icon-top-clr);
  color: var(--nav-icon-top-clr);
}

body.home header.custom-scroll #nav-icons svg,
body.pages header #nav-icons svg {
  fill: var(--nav-icon-scrolled-clr);
  color: var(--nav-icon-scrolled-clr);
}

/* miranda */
.user-contact-icons ul li a svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--nav-icon-scrolled-clr);
}

.user-contact-icons ul li a:hover,
.user-contact-icons ul li a:hover svg {
  color: var(--nav-icon-scrolled-hvr-clr);
  fill: var(--nav-icon-scrolled-hvr-clr);
}

#nav-menu-button svg path {
  transition: d 300ms ease;
}

#nav-menu-button svg:hover path {
  d: path("M 4 8 h 16 M 4 12 h 16 M 4 16 h 16");
}

/* miranda fixes */
@media (min-width: 451px) {
  .user-contact-icons ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

.user-contact-icons .svg-inline--fa:not(.fa-bars) {
  display: none;
}

.user-contact-icons ul li a {
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover svg {
  transition: 300ms ease;
}

nav.top-nav a {
  transition: 300ms ease;
}


/* mobile menu */
body #mobile-menu>div>div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto {
  background-color: var(--palette-navigationBackground-color) !important;
  height: calc(100vh - 115px);
}

#mobile-menu .text-palette-navigationLink-color {
  color: var(--menu-link-clr) !important;
  transition: 300ms ease;
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):after {
  content: "";
  display: block;
  width: 1rem;
  height: 2px;
  background-color: var(--menu-link-border);
  transition: 300ms ease;
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):hover:after {
  width: 100%;
}

#mobile-menu>div>div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto>div.sm\:hidden.pt-9.border-t.border-medium-gray,
#mobile-menu>div>div.sm\:hidden.p-4.absolute.bottom-0.p-11.text-white.bg-dark-gray.w-full {
  display: block;
}

#mobile-menu .bg-dark-gray {
  background-color: var(--menu-footer-bg);
}

/* nav social */

#navSocialMedia {
  gap: 1rem;
  margin-top: 0 !important;
}

#navSocialMedia a.social-icon-footer {
  line-height: 1;
  color: var(--menu-social-clr);
  font-size: 0.75em;
  display: block;
  transition: 300ms ease;
}

#navSocialMedia a.social-icon-footer:hover {
  color: var(--secondary);
}

/* ══════════════════════════════════════════════════════════════
   HERO — unified static + video
   ══════════════════════════════════════════════════════════════

   Two modes, both use #custom-hero:
     Static image:  <section id="custom-hero" style="background-image: url(...)">
     Video:         <section id="custom-hero" class="--yt-banner">
   ══════════════════════════════════════════════════════════════ */

/* ── Base shell ─────────────────────────────────────────────── */
#custom-hero {
  min-height: var(--hero-height-fb);
  min-height: var(--hero-height);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* content anchors to bottom */
  align-items: center;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

/* ── Video mode ─────────────────────────────────────────────── */
.--yt-banner {
  background-color: #000;
  /* flash prevention while iframe loads */
}

.custom__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-yt {
  position: absolute;
  left: 0;
  width: 100%;
  top: -90px;
  height: calc(100% + 90px);
  /* overshoots top to cover nav offset */
  overflow: hidden;
  display: flex;
  justify-content: center;
  z-index: 1;
}

#hero-yt .custom__video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 56.25vw;
  min-height: calc(100vh + 90px);
  min-width: calc(177.77vh + 160px);
  transform: translate(-50%, -50%);
}

/* ── Overlays ───────────────────────────────────────────────── */

/* Primary overlay — drives the dark gradient.
   Static hero: use a bottom-heavy gradient (content sits at bottom).
   Video hero:  uses --hero-overlay token set in :root.
   Both share the same ::before slot. */
#custom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* Static-image default — bottom-weighted vignette */
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, .78) 0%,
      rgba(0, 0, 0, .35) 40%,
      rgba(0, 0, 0, .12) 70%,
      transparent 100%);
}

/* Video hero overrides ::before with the token-driven overlay */
.--yt-banner#custom-hero::before {
  background-image: var(--hero-overlay);
}

/* Secondary overlay — side vignette, shared by both modes */
#custom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(0, 0, 0, .28) 100%);
}

/* ── Content block ──────────────────────────────────────────── */
#custom-hero .custom-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-inline: var(--gutter, 2rem);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Static hero: left-aligned content */
#custom-hero .custom-hero-content {
  max-width: var(--hero-content-width, 1380px);
  /* margin-inline: auto; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Video hero: centered content */
.--yt-banner #custom-hero .custom-hero-content,
#custom-hero.--yt-banner .custom-hero-content {
  align-items: center;
  text-align: center;
  max-width: min(var(--hero-content-width, 900px), 100%);
  left: 50%;
  transform: translateX(-50%);
}

/* ── H1 ─────────────────────────────────────────────────────── */

/* Shared base */
#custom-hero h1 {
  margin: 0 0 2rem;
  padding: 0;
  border: none;
  color: var(--hero-title-clr, #fff);
  font-weight: var(--hero-title-weight, 300);
  font-size: var(--hero-title-size-mbl, 40px);
  line-height: 1;
  text-transform: var(--hero-title-case, none);
  letter-spacing: var(--hero-title-spacing, -0.01em);
  text-shadow: none;
  text-wrap: balance;
  text-align: center;
}

@media (min-width: 768px) {
  #custom-hero h1 {
    font-size: var(--hero-title-size-lg, clamp(44px, 6.5vw, 88px));
    text-wrap: wrap;
  }
}

/* Video hero h1 — centered, balanced */
.--yt-banner #custom-hero h1 {
  text-align: center;
  max-width: none;
  text-shadow: 1px 1px 0.25rem rgba(0, 0, 0, .35);
}

/* Subtitle span (used in video hero) */
#custom-hero h1 span.--sub {
  display: block;
  font-size: var(--hero-sub-size-mbl, 16px);
  margin-top: .5rem;
  font-weight: var(--hero-sub-weight, 400);
  font-family: var(--hero-sub-font, var(--font-body)) !important;
  text-wrap: balance;
  letter-spacing: var(--hero-sub-spacing, 2px);
  text-transform: var(--hero-sub-case, uppercase);
  /* Hairline separator */
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

@media (min-width: 768px) {
  #custom-hero h1 span.--sub {
    font-size: var(--hero-sub-size-lg, 18px);
  }
}

/* Modifiers */
#custom-hero h1.--top {
  margin-top: 0;
  margin-bottom: .5rem;
}

#custom-hero h1.--lg {
  font-size: calc(var(--hero-sub-size-mbl, 16px) + 4px);
}

/* ── H2 (video hero only) ───────────────────────────────────── */
#custom-hero h2 {
  text-align: center;
  color: #fff;
  line-height: 1;
  margin: 0;
  padding: 0;
  margin-top: 1em;
}

/* ── Location eyebrow (static hero only) ───────────────────── */
#custom-hero .custom-hero-content .hero-location {
  display: block;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.25rem;
}

/* ── Search tabs ────────────────────────────────────────────── */

/* Static hero tabs — segmented strip */
#custom-hero #custom-search-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .25);
  width: fit-content;
  max-width: 100%;
  position: relative;
  z-index: 3;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  #custom-hero #custom-search-tabs {
    display: grid;
    width: 100%;
  }
}

#custom-hero #custom-search-tabs a {
  display: inline-block;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--hero-tab-txt-spacing, 3px);
  text-transform: var(--hero-tab-case, uppercase);
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  padding: var(--hero-tab-padding, 0.85rem 1.75rem);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
  background: rgba(255, 255, 255, .06);
  transition: background var(--t, 380ms) var(--ease), color var(--t, 380ms) var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

#custom-hero #custom-search-tabs a {
  background: #fff;
  color: var(--ink, #161616);
}

#custom-hero #custom-search-tabs a:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 767px) {
  #custom-hero #custom-search-tabs a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 768px) {
  #custom-hero #custom-search-tabs a {
    border-right: 1px solid rgba(0, 0, 0, .25);
  }

  #custom-hero #custom-search-tabs a:last-child {
    border-right: none;
  }
}

/* Video hero tabs — full-width token-driven grid */
.--yt-banner #custom-hero #custom-search-tabs {
  display: grid;
  border: none;
  width: 100%;
  max-width: min(var(--hero-content-width, 900px), 100%);
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .--yt-banner #custom-hero #custom-search-tabs {
    grid-template-columns: repeat(var(--number-of-tabs, 2), 1fr);
  }
}

.--yt-banner #custom-hero #custom-search-tabs a {
  border-right: none;
  background-color: var(--hero-tab-bg-clr, var(--primary));
  color: var(--hero-tab-txt-clr, #fff);
  font-size: var(--hero-tab-txt-size, 0.75em);
  font-weight: var(--hero-tab-weight, 500);
  padding: var(--hero-tab-padding, 1em 2.5em);
  border: var(--hero-tab-border, none);
}

.--yt-banner #custom-hero #custom-search-tabs a:first-child {
  background-color: var(--hero-tab-bg-clr, var(--primary));
  color: var(--hero-tab-txt-clr, #fff);
}

.--yt-banner #custom-hero #custom-search-tabs a:hover {
  background-color: var(--hero-tab-hvr-bg-clr, var(--secondary));
  color: var(--hero-tab-hvr-txt-clr, #fff);
  border-color: var(--hero-tab-hvr-border-clr, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* ── Banner logo (some clients use this) ───────────────────── */
#custom-hero img.banner_logo {
  padding: 1rem;
}

/* ── RG typeahead ───────────────────────────────────────────── */
.home #custom-hero #react-typeahead {
  width: 100%;
  max-width: 100%;
}


/* page updates */

.text-hero {
  text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.5);
}

.h-hero-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.2);
  z-index: 2;
}

.h-hero-image>div:nth-child(2) {
  position: relative;
  z-index: 3;
}


/* map */
.mapsearch .search-results,
.mapsearch .viewport {
  width: 100%;
  max-width: 100%;
}

/* ── CTA Bar ─────────────────────────────────────────────── */

#cta-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-block: 40px;
  padding: 32px 40px;
  background-color: var(--secondary);
  overflow: hidden;
}

/* diagonal accent stripe */
#cta-bar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 120px;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.12);
  transform: skewX(-12deg);
  transform-origin: top;
}

/* subtle top highlight line */
#cta-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

#cta-bar .text-block {
  flex: 1;
  min-width: 200px;
}

#cta-bar .text-block h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

#cta-bar .text-block p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

a.ctabarBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 28px;
  padding-right: 20px;
  background-color: transparent;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: background-color 250ms ease, color 250ms ease, gap 250ms ease;
  white-space: nowrap;
}

a.ctabarBtn::after {
  content: '\f061';
  /* fa-arrow-right — swap this value to change icon */
  font-family: 'FontAwesome';
  font-weight: 300;
  /* 300 = fa-light */
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  transition: 250ms ease;
  margin-left: 0;
  margin-right: 8px;
}

a.ctabarBtn:hover {

  background-color: var(--primary);
  color: #fff !important;
}

a.ctabarBtn:hover::after {
  margin-left: 8px;
  margin-right: 0;
}

@media (max-width: 600px) {
  #cta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  a.ctabarBtn {
    width: 100%;
    justify-content: center;
  }
}

div#--areaMapWrapper+.--areaContent {
  margin-top: 32px;
}

#listings>ul {
  justify-content: center;
  margin-top: 16px;
  list-style: none;
}

#listings>ul li.bg-dark-gray.text-white {
  background-color: #f8f8f8;
}

.mce-content #board-disclaimer>div {
  padding: 0;
}

/* =============================================================================
   2. ACCORDION (shared — used in area, market, and sidebar)
   ============================================================================= */

details.new-accordion {
  overflow: hidden;
}

details.new-accordion summary.new-accordion-title::-webkit-details-marker {
  display: none;
}

details.new-accordion summary.new-accordion-title {
  position: relative;
  z-index: 2;
}

details.new-accordion[open]> :not(summary.new-accordion-title) {
  color: inherit;
  border-left: none !important;
  border-right: none !important;
}

summary.new-accordion-title {
  border: 1px solid transparent;
  border-bottom-color: #D7D7D7;
  outline: none;
  padding: 16px;
  padding-left: 0;
  position: relative;
  cursor: pointer;
  transition: 300ms ease;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary.new-accordion-title::after {
  content: '\f00d';
  font-family: FontAwesome;
  color: #000;
  font-size: 16px;
  line-height: 1rem;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: .2s transform ease;
}

details.new-accordion[open]>summary.new-accordion-title::after {
  transform: rotate(90deg);
  transition: transform ease 1s;
}

details.new-accordion[open] summary.new-accordion-title,
summary.new-accordion-title:hover {
  padding-left: 16px;
  background: #f8f8f8;
}

.new-accordion-content {
  padding: 10px;
  border: 1px solid #D7D7D7;
  border-top: none;
  background-color: #f8f8f8;
}

.new-accordion-content ul.list {
  display: grid !important;
  gap: 1rem;
  list-style-type: none;
}

.new-accordion-content ul.list li {
  width: auto !important;
  margin: 0;
}

.new-accordion-content ul.list li a {
  display: block;
  transition: 300ms ease;
}

.new-accordion-content ul.list li a:hover {
  color: #000;
}

@media (width > 768px) {
  .new-accordion-content ul.list.two_column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Area/market page: smaller accordion title font */
#--area .new-accordion-content ul.list,
#--market .new-accordion-content ul.list,
.--areaSearches .new-accordion-content ul.list,
.--areaSearchesFull .new-accordion-content ul.list {
  gap: 8px;
}

#--area summary.new-accordion-title,
#--market summary.new-accordion-title,
.--areaSearches summary.new-accordion-title,
.--areaSearchesFull summary.new-accordion-title {
  font-size: 16px;
}


/* =============================================================================
   3. SHARED AREA-NAV LINK
   ============================================================================= */

a.area-nav-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--primary) !important;
  background-color: transparent;
  border: 1px solid var(--primary) !important;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  min-height: 42px;
  transition: 300ms ease;
}

a.area-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 23px;
  z-index: 2;
  background-color: var(--primary);
  opacity: 0;
  transition: 300ms ease;
}

a.area-nav-link svg {
  height: 24px;
  width: 24px;
  padding: 8px;
  border-right: 1px solid;
  background-color: var(--primary);
  color: #fff;
  transition: 300ms ease;
  position: relative;
  z-index: 3;
}

a.area-nav-link span {
  position: relative;
  z-index: 3;
}

a.area-nav-link:hover {
  color: #fff !important;
}

a.area-nav-link:hover::before {
  opacity: 1;
  width: 100%;
}


/* =============================================================================
   4. AREA PAGE
   ============================================================================= */

body:has(#--area) .h-hero-image {
  height: 40vh;
  min-height: max-content;
}

#--areaMap {
  width: 100%;
  min-height: 400px;
}

#--area {
  container-type: inline-size;
}

/* Area nav grid */
#--area .--area-nav {
  margin-bottom: 32px;
  display: grid;
  gap: 16px;
}

@container (width > 550px) {
  #--area .--area-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (width > 900px) {
  #--area .--area-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Area searches — 2-column grid */
.--areaSearches {
  display: grid;
  gap: 16px;
  margin-block: 32px;
}

@container (width > 550px) {
  .--areaSearches {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Area searches full-width variant */
.--areaSearchesFull {
  margin-block: 32px;
}

.--areaSearchesFull details.new-accordion {
  width: fit-content;
}

.--areaSearchesFull.--full details.new-accordion {
  width: 100%;
}


/* =============================================================================
   5. MARKET REPORT PAGE
   ============================================================================= */

#--market {
  container-type: inline-size;
}

#--market .--area-nav {
  margin-bottom: 32px;
  display: grid;
  gap: 16px;
}

@container (width > 550px) {
  #--market .--area-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (width > 900px) {
  #--market .--area-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =============================================================================
   6. SIDEBAR
   ============================================================================= */

.sidebar-link a,
.new-accordion-content a {
  color: var(--secondary);
  transition: 300ms ease;
}

.sidebar-link a:hover,
.new-accordion-content a:hover {
  color: var(--primary);
}

#featured-agent-group {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.sidebar-nav .sidebar-nav-link {
  border: 1px solid transparent;
  border-bottom-color: #D7D7D7;
  outline: none;
  padding: 16px;
  padding-left: 0;
  position: relative;
  cursor: pointer;
  transition: 300ms ease;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sidebar-nav .sidebar-nav-link em span {
  display: none;
}

.sidebar-nav .sidebar-nav-link:hover {
  padding-left: 16px;
  padding-right: 8px;
  background: #f8f8f8;
}


/* =============================================================================
   7. CONTACT CARD
   ============================================================================= */

.contact-card {
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .15);
  border-radius: 1rem;
  width: min(350px, 100%);
  position: relative;
  margin: auto;
  transition: 250ms ease;
  padding-top: 1rem;
}

.contact-card p.cardHeader {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.contact-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, #f6f6f6, transparent);
  transition: 250ms ease;
  border-radius: 1rem;
}

.contact-card:hover {
  cursor: pointer;
  box-shadow: 0 5px 10px 2px rgba(0, 0, 0, .15), 0 .25rem 0 0 var(--secondary);
}

.contact-card:hover::before {
  height: 100%;
}

.contact-card>* {
  position: relative;
  z-index: 2;
}

.contact-card img {
  margin: auto;
  object-position: top;
  height: unset !important;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
}

.contact-card h2.agent-name {
  margin: 0 0 1.25em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Contact bar */
.contact-card .contact-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-card .contact-bar>a {
  text-align: center;
  padding: .5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: 250ms ease;
  backface-visibility: hidden;
  background: var(--primary);
  color: #fff !important;
}

.contact-card .contact-bar>a:nth-child(2) {
  background: var(--secondary);
}

.contact-card .contact-bar>a:hover,
.contact-card .contact-bar>a:target,
.contact-card .contact-bar>a:focus {
  transform: scale(.95);
  color: #fff !important;
}

/* Social bar */
.contact-card .social-bar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-block: 1rem;
}

.contact-card .social-bar>a {
  padding: .5rem;
  display: inline-block;
  transition: 250ms ease;
  border-radius: .5rem;
  color: var(--primary);
  line-height: 1;
}

.contact-card .social-bar>a svg {
  height: 20px;
  width: 20px;
}

.contact-card .social-bar>a:hover {
  color: #fff !important;
}

.contact-card .social-bar>a.facebook-icon:hover {
  background-color: #3b5999;
}

.contact-card .social-bar>a.instagram-icon:hover {
  background-color: #e4405f;
}

.contact-card .social-bar>a.twitter-icon:hover {
  background-color: #55acee;
}

.contact-card .social-bar>a.youtube-icon:hover {
  background-color: #cd201f;
}

.contact-card .social-bar>a.linkedin-icon:hover {
  background-color: #0077b5;
}

.contact-card .social-bar>a.pinterest-icon:hover {
  background-color: #c8232c;
}

.contact-card .social-bar>a.google-icon:hover {
  background-color: #4285f4;
}

.contact-card .social-bar>a.tiktok-icon:hover {
  background-color: #ff0050;
}

.contact-card .social-bar>a.zillow-icon:hover {
  background-color: #006AFF;
}

.contact-card .social-bar>a span {
  display: none;
}

.contact-card .social-bar em {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lender card variant */
.contact-card.--lender p.lenderDetail {
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.contact-card.--lender .contact-bar {
  margin-block: 16px;
}

.contact-card.--lender .contact-bar.--0 {
  display: none;
}

.contact-card.--lender .contact-bar.--1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.contact-card.--lender .contact-bar.--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card.--lender .contact-bar.--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =============================================================================
   8. AGENT PAGE
   ============================================================================= */

.agent-page #content h1 {
  margin-bottom: 16px;
}

#--agentBio .agentInfo {
  margin-bottom: 16px;
}

#--agentBio .agentInfo:has(div:nth-child(2)) {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

#--agentBio .agentInfo .--agentSocial {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#--agentBio .agentInfo .--agentSocial svg,
#--agentBio .agentInfo .--agentSocial em {
  height: 24px;
  width: 24px;
  color: var(--primary);
  transition: 300ms ease;
}

#--agentBio .agentInfo .--agentSocial svg:hover,
#--agentBio .agentInfo .--agentSocial em:hover {
  color: var(--secondary);
}

#--agentBio .--agentCta {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

/* Agent CTA link reuses area-nav-link styles — add span padding override */
#--agentBio .--agentCta>a.agent-contact-link span {
  padding-right: 8px;
}


/* =============================================================================
   9. LISTINGS (mce-content)
   ============================================================================= */

.mce-content #listings .pt-listing-image-container {
  padding-top: 79%;
}

.mce-content #listings .mt-listing-image {
  margin-top: -79.28%;
  display: block;
}

.mce-content #listings .pt-listing-image-container-small {
  padding-top: 49%;
}

.mce-content #listings .mt-listing-image-small {
  margin-top: -49.28%;
}


/* =============================================================================
   10. HEADER / NAV (non-home pages)
   ============================================================================= */

body:not(.home) header {
  transition: 300ms ease;
}

body:not(.home) header #mobile-menu .bg-palette-navigationBackground-color {
  background-color: var(--palette-navigationBackground-color) !important;
}

body:not(.home) header #mobile-menu .text-palette-navigationLink-color {
  color: var(--palette-navigationLink-color) !important;
}

body:not(.home) header:not(.transparent) {
  box-shadow: 0 1px 8px rgb(0 0 0 / 0.15);
}

body:not(.home) header:not(.transparent) #nav-links a,
body:not(.home) header:not(.transparent) #nav-icons button {
  color: var(--palette-navigationLink-color);
}

body:not(.home) nav.top-nav .user-contact-icons svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

@media (width > 450px) {
  body:not(.home) nav.top-nav .user-contact-icons li {
    height: auto;
  }
}


/* =============================================================================
   11. MIRANDA THEME OVERRIDES
   ============================================================================= */

/* Footer */
.miranda-wrapper .main-footer {
  background: #fff;
}

.miranda-wrapper .main-footer p {
  margin: 0;
  color: #000;
}

.miranda-wrapper .main-footer p a,
.miranda-wrapper .main-footer a {
  color: var(--primary);
  transition: 300ms ease;
}

.miranda-wrapper .main-footer p a:hover,
.miranda-wrapper .main-footer a:hover {
  color: var(--secondary);
}

.miranda-wrapper .main-footer .footer-section:last-child h3 {
  color: #000;
}

/* Area nav (miranda) */
.miranda-wrapper .--area-nav {
  margin-top: 16px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

/* Searches link colors (miranda) */
.miranda-wrapper .--areaSearches ul.list li {
  padding: 0;
}

.miranda-wrapper .--areaSearches ul.list li a {
  color: var(--primary);
  transition: 300ms ease;
}

.miranda-wrapper .--areaSearches ul.list li a:hover {
  color: var(--secondary);
}

/* Sidebar spacing (miranda) */
.miranda-wrapper .sidebar .contact-card {
  margin-bottom: 32px;
}

.miranda-wrapper .sidebar .mortgage_calculator {
  margin-top: 32px !important;
}

.search-results .sub-bar svg {
  margin-right: 8px;
}